import Taro from "@tarojs/taro";
import useAppContext from "@/hooks/useAppContext";

function useData() {
  const userInfo = useAppContext(state => state.userInfo)

  const onLogin = () => {
    Taro.navigateTo({
      url: '/pages/login/index'
    })
  }

  return {
    userInfo: userInfo,
    onLogin
  }
}

export default useData